﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="EditBranch.aspx.cs" Inherits="EditBranch" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h1>Edit Branch</h1>
    <p>
        <asp:HyperLink ID="HyperLink1" runat="server" 
            NavigateUrl="~/Admin/Branch/NewBranch.aspx">New Branch</asp:HyperLink>
&nbsp;|
        <asp:HyperLink ID="HyperLink2" runat="server" 
            NavigateUrl="~/Admin/Branch/ViewBranch.aspx">View Branch</asp:HyperLink>
    </p>
    <div class="box_simple">
        <div style="height: 64px; display: block;">
            <span class="name">Name:</span>
            <asp:TextBox ID="branchName" runat="server" 
                ontextchanged="branchName_TextChanged"></asp:TextBox>
        &nbsp;<asp:Label ID="branchLabel" runat="server" ForeColor="#FF3300" 
                Text="Invalid Branch Name!" Visible="False"></asp:Label>
        </div>
        <div style="height: 64px; display: block;">
            <span class="name">Address:</span>
            <asp:TextBox ID="branchAddress" runat="server"></asp:TextBox>
        &nbsp;<asp:Label ID="addressLabel" runat="server" ForeColor="#FF3300" 
                Text="Invalid Branch Address!" Visible="False"></asp:Label>
        </div>


        <div style="height: 64px; display: block;">
            <span class="name">Country:</span>
            <asp:DropDownList ID="countryList" runat="server" DataSourceID="SqlDataSource1"
                DataTextField="Country" DataValueField="ID">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server"
                ConnectionString="<%$ ConnectionStrings:MailSystem32ConnectionString %>"
                SelectCommand="SELECT [Country], [ID] FROM [tblCountry] ORDER BY [Country]"></asp:SqlDataSource>
        </div>


    </div>

    <p>
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click"
            Text="Update Branch" />
    </p>
</asp:Content>

